package net.googlecode.myshenko.Task4;

/**
 * Test class that creates all instances of the project
 *
 * @author Vitalii Myshenko <a href="mailto:vitalii.myshenko@gmail.com">
 * @since 29.03.11
 */
public class StringTest {

    /**
     * Tester for Task4
     *
     * @param args parameters for main method
     * @author Vitalii Myshenko <a href="mailto:vitalii.myshenko@gmail.com">
     */
    public static void main(String[] args) {
       final String SENTENCE = "  The pUBlisher\t OFFERS excELLent discounTS On this book " +
            "WHEN orDErED in qUantIty\t    for bulk\n purchases OR special SAles, which may INCLUDE custom " +
            "covers or content particular TO your\n business,    training goals,    marketing\t focus, " +
            "and branding interests.   ";
        String testString;

        StringTest stringTest = new StringTest();
        StringFormater stringFormater = new StringFormater();

        testString = SENTENCE;
        testString = stringFormater.toStandardView(testString);

        System.out.println(testString + "\n");
        System.out.println(stringFormater.capitaliseAll(testString) + "\n");
        System.out.println(stringFormater.reverseAll(testString) + "\n");
        System.out.println(stringFormater.addMyDate(testString, -20) + "\n");
        System.out.println(stringFormater.replaceLetterIgnoreCase(testString, "a", "!"));
    }

}
